<!DOCTYPE html>
<html lang=en>
<head>
    <!-- so meta -->
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="HandheldFriendly" content="True">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1" />
    <meta name="description" content="Chrome移动端调试在浏览器中输入下列地址，点击inspest，或者F12点击手机按钮1chrome:&#x2F;&#x2F;inspect&#x2F;#pages  安装better-scroll1cnpm install better-scroll --save 安装使用fastclick解决移动设备300ms延迟问题12345cnpm install fastclick -Simport FastClick from">
<meta name="keywords" content="前端,Vue">
<meta property="og:type" content="article">
<meta property="og:title" content="web-app开发笔记">
<meta property="og:url" content="http:&#x2F;&#x2F;yoursite.com&#x2F;2019&#x2F;10&#x2F;09&#x2F;web-app%E5%BC%80%E5%8F%91%E7%AC%94%E8%AE%B0&#x2F;index.html">
<meta property="og:site_name" content="ECIN&#39;S BLOG">
<meta property="og:description" content="Chrome移动端调试在浏览器中输入下列地址，点击inspest，或者F12点击手机按钮1chrome:&#x2F;&#x2F;inspect&#x2F;#pages  安装better-scroll1cnpm install better-scroll --save 安装使用fastclick解决移动设备300ms延迟问题12345cnpm install fastclick -Simport FastClick from">
<meta property="og:locale" content="en">
<meta property="og:image" content="http:&#x2F;&#x2F;148.70.50.70&#x2F;source&#x2F;1570616542136.jpg">
<meta property="og:updated_time" content="2019-11-02T06:57:26.000Z">
<meta name="twitter:card" content="summary">
<meta name="twitter:image" content="http:&#x2F;&#x2F;148.70.50.70&#x2F;source&#x2F;1570616542136.jpg">
    
    
        
          
              <link rel="shortcut icon" href="/images/favicon.ico">
          
        
        
          
            <link rel="icon" type="image/png" href="/images/favicon-192x192.png" sizes="192x192">
          
        
        
          
            <link rel="apple-touch-icon" sizes="180x180" href="/images/apple-touch-icon.png">
          
        
    
    <!-- title -->
    <title>web-app开发笔记</title>
    <!-- styles -->
    <link rel="stylesheet" href="/css/style.css">
    <!-- persian styles -->
    
      <link rel="stylesheet" href="/css/rtl.css">
    
    <!-- rss -->
    
    
</head>

<body class="max-width mx-auto px3 ltr">
    
      <div id="header-post">
  <a id="menu-icon" href="#"><i class="fas fa-bars fa-lg"></i></a>
  <a id="menu-icon-tablet" href="#"><i class="fas fa-bars fa-lg"></i></a>
  <a id="top-icon-tablet" href="#" onclick="$('html, body').animate({ scrollTop: 0 }, 'fast');" style="display:none;"><i class="fas fa-chevron-up fa-lg"></i></a>
  <span id="menu">
    <span id="nav">
      <ul>
         
          <li><a href="/">Home</a></li>
         
          <li><a href="/about/">About</a></li>
         
          <li><a href="/archives/">Writing</a></li>
         
          <li><a href="/projects_url">Projects</a></li>
        
      </ul>
    </span>
    <br/>
    <span id="actions">
      <ul>
        
        <li><a class="icon" href="/2019/10/17/ES6%E8%AF%AD%E6%B3%95%E7%AC%94%E8%AE%B0/"><i class="fas fa-chevron-left" aria-hidden="true" onmouseover="$('#i-prev').toggle();" onmouseout="$('#i-prev').toggle();"></i></a></li>
        
        
        <li><a class="icon" href="/2019/10/08/Vue%E7%AC%94%E8%AE%B0/"><i class="fas fa-chevron-right" aria-hidden="true" onmouseover="$('#i-next').toggle();" onmouseout="$('#i-next').toggle();"></i></a></li>
        
        <li><a class="icon" href="#" onclick="$('html, body').animate({ scrollTop: 0 }, 'fast');"><i class="fas fa-chevron-up" aria-hidden="true" onmouseover="$('#i-top').toggle();" onmouseout="$('#i-top').toggle();"></i></a></li>
        <li><a class="icon" href="#"><i class="fas fa-share-alt" aria-hidden="true" onmouseover="$('#i-share').toggle();" onmouseout="$('#i-share').toggle();" onclick="$('#share').toggle();return false;"></i></a></li>
      </ul>
      <span id="i-prev" class="info" style="display:none;">Previous post</span>
      <span id="i-next" class="info" style="display:none;">Next post</span>
      <span id="i-top" class="info" style="display:none;">Back to top</span>
      <span id="i-share" class="info" style="display:none;">Share post</span>
    </span>
    <br/>
    <div id="share" style="display: none">
      <ul>
  <li><a class="icon" href="http://www.facebook.com/sharer.php?u=http://yoursite.com/2019/10/09/web-app%E5%BC%80%E5%8F%91%E7%AC%94%E8%AE%B0/" target="_blank" rel="noopener"><i class="fab fa-facebook " aria-hidden="true"></i></a></li>
  <li><a class="icon" href="https://twitter.com/share?url=http://yoursite.com/2019/10/09/web-app%E5%BC%80%E5%8F%91%E7%AC%94%E8%AE%B0/&text=web-app开发笔记" target="_blank" rel="noopener"><i class="fab fa-twitter " aria-hidden="true"></i></a></li>
  <li><a class="icon" href="http://www.linkedin.com/shareArticle?url=http://yoursite.com/2019/10/09/web-app%E5%BC%80%E5%8F%91%E7%AC%94%E8%AE%B0/&title=web-app开发笔记" target="_blank" rel="noopener"><i class="fab fa-linkedin " aria-hidden="true"></i></a></li>
  <li><a class="icon" href="https://pinterest.com/pin/create/bookmarklet/?url=http://yoursite.com/2019/10/09/web-app%E5%BC%80%E5%8F%91%E7%AC%94%E8%AE%B0/&is_video=false&description=web-app开发笔记" target="_blank" rel="noopener"><i class="fab fa-pinterest " aria-hidden="true"></i></a></li>
  <li><a class="icon" href="mailto:?subject=web-app开发笔记&body=Check out this article: http://yoursite.com/2019/10/09/web-app%E5%BC%80%E5%8F%91%E7%AC%94%E8%AE%B0/" target="_blank" rel="noopener"><i class="fas fa-envelope " aria-hidden="true"></i></a></li>
  <li><a class="icon" href="https://getpocket.com/save?url=http://yoursite.com/2019/10/09/web-app%E5%BC%80%E5%8F%91%E7%AC%94%E8%AE%B0/&title=web-app开发笔记" target="_blank" rel="noopener"><i class="fab fa-get-pocket " aria-hidden="true"></i></a></li>
  <li><a class="icon" href="http://reddit.com/submit?url=http://yoursite.com/2019/10/09/web-app%E5%BC%80%E5%8F%91%E7%AC%94%E8%AE%B0/&title=web-app开发笔记" target="_blank" rel="noopener"><i class="fab fa-reddit " aria-hidden="true"></i></a></li>
  <li><a class="icon" href="http://www.stumbleupon.com/submit?url=http://yoursite.com/2019/10/09/web-app%E5%BC%80%E5%8F%91%E7%AC%94%E8%AE%B0/&title=web-app开发笔记" target="_blank" rel="noopener"><i class="fab fa-stumbleupon " aria-hidden="true"></i></a></li>
  <li><a class="icon" href="http://digg.com/submit?url=http://yoursite.com/2019/10/09/web-app%E5%BC%80%E5%8F%91%E7%AC%94%E8%AE%B0/&title=web-app开发笔记" target="_blank" rel="noopener"><i class="fab fa-digg " aria-hidden="true"></i></a></li>
  <li><a class="icon" href="http://www.tumblr.com/share/link?url=http://yoursite.com/2019/10/09/web-app%E5%BC%80%E5%8F%91%E7%AC%94%E8%AE%B0/&name=web-app开发笔记&description=" target="_blank" rel="noopener"><i class="fab fa-tumblr " aria-hidden="true"></i></a></li>
  <li><a class="icon" href="https://news.ycombinator.com/submitlink?u=http://yoursite.com/2019/10/09/web-app%E5%BC%80%E5%8F%91%E7%AC%94%E8%AE%B0/&t=web-app开发笔记" target="_blank" rel="noopener"><i class="fab fa-hacker-news " aria-hidden="true"></i></a></li>
</ul>

    </div>
    <div id="toc">
      <ol class="toc"><li class="toc-item toc-level-3"><a class="toc-link" href="#Chrome移动端调试"><span class="toc-number">1.</span> <span class="toc-text">Chrome移动端调试</span></a><ol class="toc-child"><li class="toc-item toc-level-4"><a class="toc-link" href="#在浏览器中输入下列地址，点击inspest，或者F12点击手机按钮"><span class="toc-number">1.1.</span> <span class="toc-text">在浏览器中输入下列地址，点击inspest，或者F12点击手机按钮</span></a></li></ol></li><li class="toc-item toc-level-3"><a class="toc-link" href="#安装better-scroll"><span class="toc-number">2.</span> <span class="toc-text">安装better-scroll</span></a></li><li class="toc-item toc-level-3"><a class="toc-link" href="#安装使用fastclick解决移动设备300ms延迟问题"><span class="toc-number">3.</span> <span class="toc-text">安装使用fastclick解决移动设备300ms延迟问题</span></a></li><li class="toc-item toc-level-3"><a class="toc-link" href="#阻止移动端app使用放大缩小等功能"><span class="toc-number">4.</span> <span class="toc-text">阻止移动端app使用放大缩小等功能</span></a><ol class="toc-child"><li class="toc-item toc-level-4"><a class="toc-link" href="#在index-html中加入"><span class="toc-number">4.1.</span> <span class="toc-text">在index.html中加入</span></a></li></ol></li></ol>
    </div>
  </span>
</div>

    
    <div class="content index py4">
        
        <article class="post" itemscope itemtype="http://schema.org/BlogPosting">
  <header>
    
    <h1 class="posttitle" itemprop="name headline">
        web-app开发笔记
    </h1>



    <div class="meta">
      <span class="author" itemprop="author" itemscope itemtype="http://schema.org/Person">
        <span itemprop="name">ECIN'S BLOG</span>
      </span>
      
    <div class="postdate">
      
        <time datetime="2019-10-09T10:22:25.000Z" itemprop="datePublished">2019-10-09</time>
        
      
    </div>


      

      
    <div class="article-tag">
        <i class="fas fa-tag"></i>
        <a class="tag-link" href="/tags/Vue/" rel="tag">Vue</a>, <a class="tag-link" href="/tags/%E5%89%8D%E7%AB%AF/" rel="tag">前端</a>
    </div>


    </div>
  </header>
  

  <div class="content" itemprop="articleBody">
    <h3 id="Chrome移动端调试"><a href="#Chrome移动端调试" class="headerlink" title="Chrome移动端调试"></a>Chrome移动端调试</h3><h4 id="在浏览器中输入下列地址，点击inspest，或者F12点击手机按钮"><a href="#在浏览器中输入下列地址，点击inspest，或者F12点击手机按钮" class="headerlink" title="在浏览器中输入下列地址，点击inspest，或者F12点击手机按钮"></a>在浏览器中输入下列地址，点击inspest，或者F12点击手机按钮</h4><figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">chrome://inspect/#pages</span><br></pre></td></tr></table></figure>
<p><img src="http://148.70.50.70/source/1570616542136.jpg" alt="image.png"></p>
<h3 id="安装better-scroll"><a href="#安装better-scroll" class="headerlink" title="安装better-scroll"></a>安装better-scroll</h3><figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">cnpm install better-scroll --save</span><br></pre></td></tr></table></figure>
<h3 id="安装使用fastclick解决移动设备300ms延迟问题"><a href="#安装使用fastclick解决移动设备300ms延迟问题" class="headerlink" title="安装使用fastclick解决移动设备300ms延迟问题"></a>安装使用fastclick解决移动设备300ms延迟问题</h3><figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br></pre></td><td class="code"><pre><span class="line">cnpm install fastclick -S</span><br><span class="line"></span><br><span class="line">import FastClick from &apos;fastclick&apos;;</span><br><span class="line"></span><br><span class="line">FastClick.attach(document.body);</span><br></pre></td></tr></table></figure>
<h3 id="阻止移动端app使用放大缩小等功能"><a href="#阻止移动端app使用放大缩小等功能" class="headerlink" title="阻止移动端app使用放大缩小等功能"></a>阻止移动端app使用放大缩小等功能</h3><h4 id="在index-html中加入"><a href="#在index-html中加入" class="headerlink" title="在index.html中加入"></a>在index.html中加入</h4><figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br></pre></td><td class="code"><pre><span class="line">&lt;meta name=&quot;viewport&quot;</span><br><span class="line">      content=&quot;width=device-width,</span><br><span class="line">      initial-scale=1.0,</span><br><span class="line">      maximum-scale=1.0,</span><br><span class="line">      minimum-scale=1.0,</span><br><span class="line">      user-scalable=no&quot;&gt;</span><br></pre></td></tr></table></figure>
  </div>
</article>



        
          <div id="footer-post-container">
  <div id="footer-post">

    <div id="nav-footer" style="display: none">
      <ul>
         
          <li><a href="/">Home</a></li>
         
          <li><a href="/about/">About</a></li>
         
          <li><a href="/archives/">Writing</a></li>
         
          <li><a href="/projects_url">Projects</a></li>
        
      </ul>
    </div>

    <div id="toc-footer" style="display: none">
      <ol class="toc"><li class="toc-item toc-level-3"><a class="toc-link" href="#Chrome移动端调试"><span class="toc-number">1.</span> <span class="toc-text">Chrome移动端调试</span></a><ol class="toc-child"><li class="toc-item toc-level-4"><a class="toc-link" href="#在浏览器中输入下列地址，点击inspest，或者F12点击手机按钮"><span class="toc-number">1.1.</span> <span class="toc-text">在浏览器中输入下列地址，点击inspest，或者F12点击手机按钮</span></a></li></ol></li><li class="toc-item toc-level-3"><a class="toc-link" href="#安装better-scroll"><span class="toc-number">2.</span> <span class="toc-text">安装better-scroll</span></a></li><li class="toc-item toc-level-3"><a class="toc-link" href="#安装使用fastclick解决移动设备300ms延迟问题"><span class="toc-number">3.</span> <span class="toc-text">安装使用fastclick解决移动设备300ms延迟问题</span></a></li><li class="toc-item toc-level-3"><a class="toc-link" href="#阻止移动端app使用放大缩小等功能"><span class="toc-number">4.</span> <span class="toc-text">阻止移动端app使用放大缩小等功能</span></a><ol class="toc-child"><li class="toc-item toc-level-4"><a class="toc-link" href="#在index-html中加入"><span class="toc-number">4.1.</span> <span class="toc-text">在index.html中加入</span></a></li></ol></li></ol>
    </div>

    <div id="share-footer" style="display: none">
      <ul>
  <li><a class="icon" href="http://www.facebook.com/sharer.php?u=http://yoursite.com/2019/10/09/web-app%E5%BC%80%E5%8F%91%E7%AC%94%E8%AE%B0/" target="_blank" rel="noopener"><i class="fab fa-facebook fa-lg" aria-hidden="true"></i></a></li>
  <li><a class="icon" href="https://twitter.com/share?url=http://yoursite.com/2019/10/09/web-app%E5%BC%80%E5%8F%91%E7%AC%94%E8%AE%B0/&text=web-app开发笔记" target="_blank" rel="noopener"><i class="fab fa-twitter fa-lg" aria-hidden="true"></i></a></li>
  <li><a class="icon" href="http://www.linkedin.com/shareArticle?url=http://yoursite.com/2019/10/09/web-app%E5%BC%80%E5%8F%91%E7%AC%94%E8%AE%B0/&title=web-app开发笔记" target="_blank" rel="noopener"><i class="fab fa-linkedin fa-lg" aria-hidden="true"></i></a></li>
  <li><a class="icon" href="https://pinterest.com/pin/create/bookmarklet/?url=http://yoursite.com/2019/10/09/web-app%E5%BC%80%E5%8F%91%E7%AC%94%E8%AE%B0/&is_video=false&description=web-app开发笔记" target="_blank" rel="noopener"><i class="fab fa-pinterest fa-lg" aria-hidden="true"></i></a></li>
  <li><a class="icon" href="mailto:?subject=web-app开发笔记&body=Check out this article: http://yoursite.com/2019/10/09/web-app%E5%BC%80%E5%8F%91%E7%AC%94%E8%AE%B0/" target="_blank" rel="noopener"><i class="fas fa-envelope fa-lg" aria-hidden="true"></i></a></li>
  <li><a class="icon" href="https://getpocket.com/save?url=http://yoursite.com/2019/10/09/web-app%E5%BC%80%E5%8F%91%E7%AC%94%E8%AE%B0/&title=web-app开发笔记" target="_blank" rel="noopener"><i class="fab fa-get-pocket fa-lg" aria-hidden="true"></i></a></li>
  <li><a class="icon" href="http://reddit.com/submit?url=http://yoursite.com/2019/10/09/web-app%E5%BC%80%E5%8F%91%E7%AC%94%E8%AE%B0/&title=web-app开发笔记" target="_blank" rel="noopener"><i class="fab fa-reddit fa-lg" aria-hidden="true"></i></a></li>
  <li><a class="icon" href="http://www.stumbleupon.com/submit?url=http://yoursite.com/2019/10/09/web-app%E5%BC%80%E5%8F%91%E7%AC%94%E8%AE%B0/&title=web-app开发笔记" target="_blank" rel="noopener"><i class="fab fa-stumbleupon fa-lg" aria-hidden="true"></i></a></li>
  <li><a class="icon" href="http://digg.com/submit?url=http://yoursite.com/2019/10/09/web-app%E5%BC%80%E5%8F%91%E7%AC%94%E8%AE%B0/&title=web-app开发笔记" target="_blank" rel="noopener"><i class="fab fa-digg fa-lg" aria-hidden="true"></i></a></li>
  <li><a class="icon" href="http://www.tumblr.com/share/link?url=http://yoursite.com/2019/10/09/web-app%E5%BC%80%E5%8F%91%E7%AC%94%E8%AE%B0/&name=web-app开发笔记&description=" target="_blank" rel="noopener"><i class="fab fa-tumblr fa-lg" aria-hidden="true"></i></a></li>
  <li><a class="icon" href="https://news.ycombinator.com/submitlink?u=http://yoursite.com/2019/10/09/web-app%E5%BC%80%E5%8F%91%E7%AC%94%E8%AE%B0/&t=web-app开发笔记" target="_blank" rel="noopener"><i class="fab fa-hacker-news fa-lg" aria-hidden="true"></i></a></li>
</ul>

    </div>

    <div id="actions-footer">
        <a id="menu" class="icon" href="#" onclick="$('#nav-footer').toggle();return false;"><i class="fas fa-bars fa-lg" aria-hidden="true"></i> Menu</a>
        <a id="toc" class="icon" href="#" onclick="$('#toc-footer').toggle();return false;"><i class="fas fa-list fa-lg" aria-hidden="true"></i> TOC</a>
        <a id="share" class="icon" href="#" onclick="$('#share-footer').toggle();return false;"><i class="fas fa-share-alt fa-lg" aria-hidden="true"></i> Share</a>
        <a id="top" style="display:none" class="icon" href="#" onclick="$('html, body').animate({ scrollTop: 0 }, 'fast');"><i class="fas fa-chevron-up fa-lg" aria-hidden="true"></i> Top</a>
    </div>

  </div>
</div>

        
        <footer id="footer">
  <div class="footer-left">
    Copyright &copy; 2020 ECIN520
  </div>
  <div class="footer-right">
    <nav>
      <ul>
         
          <li><a href="/">Home</a></li>
         
          <li><a href="/about/">About</a></li>
         
          <li><a href="/archives/">Writing</a></li>
         
          <li><a href="/projects_url">Projects</a></li>
        
      </ul>
    </nav>
  </div>
</footer>

    </div>
    <!-- styles -->
<link rel="stylesheet" href="/lib/font-awesome/css/all.min.css">
<link rel="stylesheet" href="/lib/justified-gallery/css/justifiedGallery.min.css">

    <!-- jquery -->
<script src="/lib/jquery/jquery.min.js"></script>
<script src="/lib/justified-gallery/js/jquery.justifiedGallery.min.js"></script>
<!-- clipboard -->

  <script src="/lib/clipboard/clipboard.min.js"></script>
  <script type="text/javascript">
  $(function() {
    // copy-btn HTML
    var btn = "<span class=\"btn-copy tooltipped tooltipped-sw\" aria-label=\"Copy to clipboard!\">";
    btn += '<i class="far fa-clone"></i>';
    btn += '</span>'; 
    // mount it!
    $(".highlight table").before(btn);
    var clip = new ClipboardJS('.btn-copy', {
      text: function(trigger) {
        return Array.from(trigger.nextElementSibling.querySelectorAll('.code')).reduce((str,it)=>str+it.innerText+'\n','')
      }
    });
    clip.on('success', function(e) {
      e.trigger.setAttribute('aria-label', "Copied!");
      e.clearSelection();
    })
  })
  </script>

<script src="/js/main.js"></script>
<!-- search -->

<!-- Google Analytics -->

<!-- Baidu Analytics -->

<!-- Disqus Comments -->


</body>
</html>
